package com.eugene.ui.util;

import org.eclipse.swt.layout.GridData;

public class GridDataUtil {
	
	public static GridData getVerticalSpan(int hAlignment, int vAlignment, boolean grabHSpace, boolean grabVSpace,int spanNum){
		GridData rst = new GridData(hAlignment, vAlignment, grabHSpace, grabVSpace);
		rst.verticalSpan =spanNum;
		return rst;
	}
	public static GridData getHorizonSpan(int hAlignment, int vAlignment, boolean grabHSpace, boolean grabVSpace,int spanNum){
		GridData rst = new GridData(hAlignment, vAlignment, grabHSpace, grabVSpace);
		rst.horizontalSpan =spanNum;
		return rst;
	}
	
	
}
